package com.ctg.itrdc.sysmgr.portal.data.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.pasp.core.Entity;


@Table(name = "SYSUSER_LOGIN_LIMIT")
public class SysuserLoginLimit extends Entity<Long> {
	private static final long serialVersionUID = -2811347047325737314L;


	/**
	 * 登录设置标识,主键
	 */
	@Id
	@Column(name = "LOGIN_LIMIT_ID")
	private Long loginLimitId;

	/**
	 * 登录设置IP值
	 */
	@Column(name = "LOGIN_LIMIT_IP_VAL")
	private String loginLimitIpVal;

	/**
	 * 登录设置类型，LOVB,IP地址MAC地址
	 */
	@Column(name = "LOGIN_LIMIT_TYPE")
	private String loginLimitType;

	/**
	 * 记录系统用户登录设置的创建人
	 */
	@Column(name = "CREATE_STAFF")
	private Long createStaff;

	/**
	 * 修改时间
	 */
	@Column(name = "UPDATE_DATE")
	private Timestamp updateDate;

	/**
	 * 登录设置值
	 */
	@Column(name = "LOGIN_LIMIT_VAL")
	private String loginLimitVal;

	/**
	 * 系统用户生效时间
	 */
	@Column(name = "EFF_DATE")
	private Timestamp effDate;

	/**
	 * 登录设置MAC值
	 */
	@Column(name = "LOGIN_LIMIT_MAC_VAL")
	private String loginLimitMacVal;

	/**
	 * 状态变更的时间
	 */
	@Column(name = "STATUS_DATE")
	private Timestamp statusDate;

	/**
	 * 租户标识。
	 */
	@Column(name = "TENANT_ID")
	private Long tenantId;

	/**
	 * 公用管理区域标识,记录区域唯一标识
	 */
	@Column(name = "COMMON_REGION_ID")
	private Long commonRegionId;

	/**
	 * 分片键1，固定值-1。
	 */
	@Column(name = "SHARD1")
	private Long shard1;

	/**
	 * 修改人
	 */
	@Column(name = "UPDATE_STAFF")
	private Long updateStaff;

	/**
	 * 系统用户失效时间
	 */
	@Column(name = "EXP_DATE")
	private Timestamp expDate;

	/**
	 * 分片键2，固定值-1。
	 */
	@Column(name = "SHARD2")
	private Long shard2;

	/**
	 * 记录系统用户登录设置的状态，如有效、无效等。
	 */
	@Column(name = "STATUS_CD")
	private String statusCd;

	/**
	 * 记录系统用户登录设置创建时间
	 */
	@Column(name = "CREATE_DATE")
	private Timestamp createDate;

	/**
	 * 系统用户标识
	 */
	@Column(name = "SYS_USER_ID")
	private Long sysUserId;


	public void setLoginLimitId(Long loginLimitId){
		this.loginLimitId = loginLimitId;
	}

	public Long getLoginLimitId(){
		return this.loginLimitId;
	}

	public void setLoginLimitIpVal(String loginLimitIpVal){
		this.loginLimitIpVal = loginLimitIpVal;
	}

	public String getLoginLimitIpVal(){
		return this.loginLimitIpVal;
	}

	public void setLoginLimitType(String loginLimitType){
		this.loginLimitType = loginLimitType;
	}

	public String getLoginLimitType(){
		return this.loginLimitType;
	}

	public void setCreateStaff(Long createStaff){
		this.createStaff = createStaff;
	}

	public Long getCreateStaff(){
		return this.createStaff;
	}

	public void setUpdateDate(Timestamp updateDate){
		this.updateDate = updateDate;
	}

	public Timestamp getUpdateDate(){
		return this.updateDate;
	}

	public void setLoginLimitVal(String loginLimitVal){
		this.loginLimitVal = loginLimitVal;
	}

	public String getLoginLimitVal(){
		return this.loginLimitVal;
	}

	public void setEffDate(Timestamp effDate){
		this.effDate = effDate;
	}

	public Timestamp getEffDate(){
		return this.effDate;
	}

	public void setLoginLimitMacVal(String loginLimitMacVal){
		this.loginLimitMacVal = loginLimitMacVal;
	}

	public String getLoginLimitMacVal(){
		return this.loginLimitMacVal;
	}

	public void setStatusDate(Timestamp statusDate){
		this.statusDate = statusDate;
	}

	public Timestamp getStatusDate(){
		return this.statusDate;
	}

	public void setTenantId(Long tenantId){
		this.tenantId = tenantId;
	}

	public Long getTenantId(){
		return this.tenantId;
	}

	public void setCommonRegionId(Long commonRegionId){
		this.commonRegionId = commonRegionId;
	}

	public Long getCommonRegionId(){
		return this.commonRegionId;
	}

	public void setShard1(Long shard1){
		this.shard1 = shard1;
	}

	public Long getShard1(){
		return this.shard1;
	}

	public void setUpdateStaff(Long updateStaff){
		this.updateStaff = updateStaff;
	}

	public Long getUpdateStaff(){
		return this.updateStaff;
	}

	public void setExpDate(Timestamp expDate){
		this.expDate = expDate;
	}

	public Timestamp getExpDate(){
		return this.expDate;
	}

	public void setShard2(Long shard2){
		this.shard2 = shard2;
	}

	public Long getShard2(){
		return this.shard2;
	}

	public void setStatusCd(String statusCd){
		this.statusCd = statusCd;
	}

	public String getStatusCd(){
		return this.statusCd;
	}

	public void setCreateDate(Timestamp createDate){
		this.createDate = createDate;
	}

	public Timestamp getCreateDate(){
		return this.createDate;
	}

	public void setSysUserId(Long sysUserId){
		this.sysUserId = sysUserId;
	}

	public Long getSysUserId(){
		return this.sysUserId;
	}

	@Override
	public Long getId() {
		return loginLimitId;
	}
	
	@Override
	public void setId(Long id) {
		this.loginLimitId = id;
	}
	
	public SysuserLoginLimit() {
		super();
    }
}
